<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite lay-href="/sett/list">结算列表</cite></a>
        <a><cite>结算详情</cite></a>
    </div>
</div>
<style>
    .layui-form-label {
        width:15% !important;
        margin-left:1%;
    }
    .layui-input-inline {
        width: 33% !important;
    }
</style>
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-tab layui-tab-brief">
        <div class="layui-tab-content">
            <form class="layui-form layui-form-pane" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label">账户属性</label>
                    <div class="layui-input-inline">
                        <select name="accountAttr" id="accountAttr" lay-search="">
                            <option value="0">对私</option>
                            <option value="1">对公</option>
                        </select>
                    </div>
                    <label class="layui-form-label">账户类型</label>
                    <div class="layui-input-inline">
                        <select name="accountType" id="accountType" lay-search="">
                            <option value="1">银行卡转账</option>
                            <option value="2">微信转账</option>
                            <option value="2">支付宝转账</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">银行名称</label>
                    <div class="layui-input-inline">
                        <input type="text" id="bankName" disabled="disabled" class="layui-input">
                    </div>
                    <label class="layui-form-label">开户网点</label>
                    <div class="layui-input-inline">
                        <input type="text" id="bankNetName" disabled="disabled" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">开户行省</label>
                    <div class="layui-input-inline">
                        <input type="text" id="province" disabled="disabled" class="layui-input">
                    </div>
                    <label class="layui-form-label">开户行市</label>
                    <div class="layui-input-inline">
                        <input type="text" id="city" disabled="disabled" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">账户名</label>
                    <div class="layui-input-inline">
                        <input type="text" id="accountName" disabled="disabled" class="layui-input">
                    </div>
                    <label class="layui-form-label">账号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="accountNo" disabled="disabled" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">结算状态</label>
                    <div class="layui-input-inline">
                        <select name="status" id="status" lay-search="">
                            <option value="">结算状态</option>
                            <option value="2">已审核</option>
                            <option value="4">打款中</option>
                            <option value="5">打款成功</option>
                            <option value="6">打款失败</option>
                        </select>
                    </div>
                    <label class="layui-form-label">申请时间</label>
                    <div class="layui-input-inline">
                        <input type="text" id="createTime" disabled="disabled" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">结算备注</label>
                    <div class="layui-input-block">
                        <input type="text" id="remark" disabled="disabled" class="layui-input" style="width: 90%">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block" >
                        <a lay-href="sett/list" class="layui-btn">返回</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
  </div>
</div>

<script>
    layui.use(['admin','form'],function(){
        var form = layui.form
        ,$ = layui.$
        ,admin = layui.admin
        ,element = layui.element
        ,layer = layui.layer ;
        // 导航
        element.render('breadcrumb', 'breadcrumb');
        var id = layui.router().search.id;
        var remit = layui.router().search.remit;
        admin.req({
            type: 'get',
            url: layui.setter.baseUrl + '/sett/get',
            data: {
                id : id
            },
            error: function(err){
                layer.alert(JSON.stringify(err.field), {
                    title: '错误提示'
                })
            },
            success: function(res){
                if(res.code == 0){
                    $('#accountAttr').val(res.data.accountAttr);
                    $('#accountType').val(res.data.accountType);
                    $('#bankName').val(res.data.bankName);
                    $('#bankNetName').val(res.data.bankNetName);
                    $('#province').val(res.data.province);
                    $('#city').val(res.data.city);
                    $('#accountName').val(res.data.accountName);
                    $('#accountNo').val(res.data.accountNo);
                    $('#amount').val(res.data.amount);
                    $('#status').val(res.data.status);
                    $('#settOrderId').val(res.data.settOrderId);
                    $('#createTime').val(res.data.createTime);
                    $('#remark').val(res.data.remark);
                    form.render();
                }
            }
        })
    })
</script>